import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '@/views/LoginView.vue'
import indexView from '@/views/IndexView.vue'
import AppointmentView from '@/views/AppointmentView.vue'
import HospitalView from '@/views/HospitalView.vue'
import RegisterView from '@/views/RegisterView.vue'
import SetmealView from '@/views/SetmealView.vue'
import PersonalView from '@/views/PersonalView.vue'
import UpdatePassView from '@/views/UpdatePassView.vue'
import SelectdateView from '@/views/SelectdateView.vue'
import ConfirmorderView from '@/views/ConfirmorderView.vue'
import AppointmentsuccessView from '@/views/AppointmentsuccessView.vue'
import AppointmentListView from '@/views/AppointmentListView.vue'
import AppointmentcancelView from '@/views/AppointmentcancelView.vue'
import ReportlistView from '@/views/ReportlistView.vue'
import ReportView from '@/views/ReportView.vue'
import ReportDetailView from '@/views/ReportDetailView.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: LoginView
    },
    {
      path: '/index',
      name: 'index',
      component: indexView
    },
    {
      path: '/appointment',
      name: 'appointment',
      component: AppointmentView
    },
    {
      path: '/hospital',
      name: 'hospital',
      component: HospitalView
    },
    {
      path: '/register',
      name: 'register',
      component: RegisterView
    },
    {
      path: '/setmeal',
      name: 'setmeal',
      component: SetmealView
    },
    {
      path: '/personal',
      name: 'personal',
      component: PersonalView
    },
    {
      path: '/updatepass',
      name: 'updatepass',
      component: UpdatePassView
    },
    {
      path: '/selectdate',
      name: 'selectdate',
      component: SelectdateView
    },
    {
      path: '/confirmorder',
      name: 'confirmorder',
      component: ConfirmorderView
    },
    {
      path: '/appointmentsuccess',
      name: 'appointmentsuccess',
      component: AppointmentsuccessView
    },
    {
      path: '/appointmentlist',
      name: 'appointmentlist',
      component: AppointmentListView
    },
    {
      path: '/appointmentcancel',
      name: 'appointmentcancel',
      component: AppointmentcancelView
    },
    {
      path: '/reportlist',
      name: 'reportlist',
      component: ReportlistView
    },
    {
      path: '/report',
      name: 'report',
      component: ReportView
    },
    {
      path: '/reportdetaillist',
      name: 'reportdetaillist',
      component: ReportDetailView
    },
  ]
})

export default router
